package com.xnyzc.lhy.mis.entity.user.wallet;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* 用户钱包
*
* @author zhuyubin
* @since 2019-08-09
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaCWallet对象", description="用户钱包")
public class OaCWallet implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "钱包ID")
    @TableId(value="wallet_id", type = IdType.INPUT)
    private Long walletId;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "部门ID")
    private Long officeId;

    @ApiModelProperty(value = "用户余额表")
    private BigDecimal walletBalance;

    @ApiModelProperty(value = "余额是否支付中（0：否、1：是）")
    private Integer isBalancelPay;

    @ApiModelProperty(value = "个人公务余额")
    private BigDecimal personalOfficialBalance;

    @ApiModelProperty(value = "是否有个人公务额度（0：否、1：是）")
    private Integer isPersonalAmount;

    @ApiModelProperty(value = "个人公务是否支付中（0：否、1：是）")
    private Integer isPersonalPay;

    @ApiModelProperty(value = "部门公务余额")
    private BigDecimal deptOfficialBalance;

    @ApiModelProperty(value = "是否有部门公务额度（0：否、1：是）")
    private Integer isDeptAmount;

    @ApiModelProperty(value = "公务额度是否支付中（0：否、1：是）")
    private Integer isDeptPay;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String WALLET_ID = "wallet_id";

    public static final String USER_ID = "user_id";

    public static final String OFFICE_ID = "office_id";

    public static final String WALLET_BALANCE = "wallet_balance";

    public static final String IS_BALANCEL_PAY = "is_balancel_pay";

    public static final String PERSONAL_OFFICIAL_BALANCE = "personal_official_balance";

    public static final String IS_PERSONAL_AMOUNT = "is_personal_amount";

    public static final String IS_PERSONAL_PAY = "is_personal_pay";

    public static final String DEPT_OFFICIAL_BALANCE = "dept_official_balance";

    public static final String IS_DEPT_AMOUNT = "is_dept_amount";

    public static final String IS_DEPT_PAY = "is_dept_pay";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
